const { Test } = require("./apis/Test");
const { GET, Server } = require("./lib/FastAPI/FastAPI");
const { FastAPIException, FastAPIPortCreateErrorException, FastAPIPortRangeException, FastAPIUknowPortException } = require("./lib/FastAPI/FastAPIException");


// new Test({
//     path:"/test",
//     port:"8001",
// }).start(GET);

let myserver = new Server();

myserver.addAPI(new Test({
    path:"/test",
    method:"GET"
}));

myserver.start(8001);